<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no"/>
    <title>详细信息</title>
    <link href="/Public/zjdailyCard/css/bkmain.css?v=1" type="text/css" rel="stylesheet"/>
</head>
<body class="addressBg">
<div class="main">
    <form>
        <input type="hidden" value="<?php echo I('get.cardId', '','');?>" name="cardId" >
        <input type="hidden" value="<?php echo I('get.username', '','');?>" name="username" >
        <input type="hidden" value="<?php echo I('get.telephone', '','');?>" name="telephone" >
        <input type="hidden" value="<?php echo I('get.province', '','');?>" name="province" >
        <input type="hidden" value="<?php echo I('get.city', '','');?>" name="city" >
        <input type="hidden" value="<?php echo I('get.county', '','');?>" name="county" >
        <input type="hidden" value="<?php echo I('get.address', '','');?>" name="address" >
        <input type="hidden" value="<?php echo I('get.metier', '','');?>" name="metier" >
    </form>
    <ul class="ulAddress ulAddressFix ulAddressL">
        <li>
            <span class="iconfont icon icon-gezicopt"></span>

            <div class="spanAddress spanAddressFix">
                <span class="spanInfo boxSize">卡号</span>

                <p class="pinfo">{$card['cardnumber']}</p>
            </div>
        </li>
        <li>
            <span class="iconfont icon icon-lianxirenzheng"></span>

            <div class="spanAddress spanAddressFix">
                <span class="spanInfo boxSize">姓名</span>

                <p class="pinfo">{$card['username']}</p>
            </div>
        </li>
        <li>
            <span class="iconfont icon icon-dianhua"></span>

            <div class="spanAddress spanAddressFix">
                <span class="spanInfo boxSize">手机号码</span>

                <p class="pinfo">{$card['telephone']}</p>
            </div>
        </li>
        <li>
            <span class="iconfont icon icon-duoren"></span>

            <div class="spanAddress spanAddressFix">
                <span class="spanInfo boxSize">职业</span>

                <p class="pinfo">{$card['metier']}</p>
            </div>
        </li>
    </ul>
    <ul class="ulAddress ulAddressFix ulAddressR ulAddressWeb">
        <li>
            <span class="iconfont icon icon-icon3"></span>

            <div class="spanAddress spanAddressFix">
                <span class="spanInfo boxSize">地区</span>

                <p class="pinfo"><span class="spanProvince">{$card['provincename']}</span><span class="spanCity">{$card['cityname']}</span><span
                        class="spanArea">{$card['countyname']}</span></p>
            </div>
        </li>
        <li class="liTxt">
            <div class="spanAddress spanFr spanAddressFix">
                <span class="spanInfo boxSize">详细地址</span>

                <p class="pinfo">{$card['address']}

                <p>

            </div>
        </li>
    </ul>
    <div class="intro" style="color: red"><span class="iconfont icon icon-icoyuan"></span>核对信息，一经确认便无法修改</div>
    <div class="btn ulAddEdit" style="margin-top:50px">
        <ul class="ulBtn">
            <li class="fr">
                <a href="javascript:;" class="saveBtn fr backBtn boxSize borderRadius" id="sumiBtn">确认订阅</a>
            </li>
            <li><a  href="javascript:history.go(-1)"
                               class="saveBtn borderRadius">修改</a></li>
        </ul>
    </div>
    <!--<div class="btn"><input type="button" value="保存" class="sumiBtn borderRadius gray"/></div>-->
    <div class="divfooter mart100">
        <p>浙报新媒体技术支持</p>

        <p>联系方式：0571-85310140</p>

        <p class="pFooter">浙江日报新闻发展有限公司 | Copyright © 2018 - 2019</p>
    </div>
</div>
<script type="text/javascript" src="/Public/zjdailyCard/js/jquery-1.7.1.min.js"></script>
<script>
    function CloseWebPage() {
        if (navigator.userAgent.indexOf("MSIE") > 0) {
            if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
                window.opener = null;
                window.close();
            } else {
                window.open('', '_top');
                window.top.close();
            }
        }
        else if (navigator.userAgent.indexOf("Firefox") > 0) {
            window.location.href = 'about:blank ';
        } else {
            window.opener = null;
            window.open('', '_self', '');
            window.close();
        }
    }
    $("#sumiBtn").click(function () {
        var data = $("form").serialize();
        $.ajax({
            data: data,
            url: "/wap/zJDailyCard/active",
            dataType: 'json',
            type: 'post',
            success: function (res) {
                if (res.err != 200) {
                    alert(res.msg);
                } else {
                    window.location = "/Wap/ZJDailyCard/edit?cardId=" + res.msg;
                }
            }
        });
    });
</script>
</body>
</html>
